package com.ccb.p4.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * p4问题错误表
 * </p>
 *
 * @author xianghui.zh
 * @since 2022-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("p4_problem")
@ApiModel(value="Problem对象", description="p4问题错误表")
public class Problem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "错误码")
    private String errorCode;

    @ApiModelProperty(value = "流水号")
    private String traceCode;

    @ApiModelProperty(value = "交易码")
    private String transactionCode;

    @ApiModelProperty(value = "测试环境")
    private String errorAp;

    @ApiModelProperty(value = "错误描述")
    private String errorDescription;

    @ApiModelProperty(value = "错误截图")
    private String errorImage;

    @ApiModelProperty(value = "错误解决方法")
    private String errorSolution;

    @ApiModelProperty(value = "问题提出人")
    private String putForwardPerson;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "是否解决 1（true）已解决，  0（false）未解决")
    @TableField(value = "is_solved")
    private Boolean solved;

    @ApiModelProperty(value = "是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField(value = "is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
